package com.lxujia.ruankao.model;

import org.litepal.annotation.Column;
import org.litepal.crud.LitePalSupport;

/**
 * 题目表
 */
public class QuestionItem extends LitePalSupport {

    private int id;//问题ID
    private int no;//问题序号
    private String answerDesc;//问题详解
    private String answerDescImage;//问题详解图片
    private String questionTitle;//问题题目
    private String answerList; //问题选项
    private String rightAnswer;//正确答案
    private String testPoint;//考点
    private int questionType;//试题类型 0:单选题目，一题一问  1:单选题，一题多问 目前都是一题一问。一题多问的分成了两个题目
    private String questionImage;//插图
    private String answerListImage;//答案插图
    @Column(defaultValue = "-1")  // 默认值
    private int userAnswer = -1; // 用户答题： 0 A，1 B，2 C，3 D，-1 未做题
    private int isError; //用户答案是否正确

    public QuestionItem() {
    }

    public QuestionItem(int no, String questionTitle, String answerDesc,
                        String rightAnswer, String answerList) {
        this.no = no;
        this.answerDesc = answerDesc;
        this.questionTitle = questionTitle;
        this.rightAnswer = rightAnswer;
        this.answerList = answerList;
        this.userAnswer = -1;
    }

    public String getAnswerDescImage() { return answerDescImage; }

    public void setAnswerDescImage(String answerDescImage) { this.answerDescImage = answerDescImage;}

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAnswerDesc() {
        return answerDesc;
    }

    public void setAnswerDesc(String answerDesc) {
        this.answerDesc = answerDesc;
    }

    public String getRightAnswer() {
        return rightAnswer;
    }

    public void setRightAnswer(String rightAnswer) {
        this.rightAnswer = rightAnswer;
    }

    public String getQuestionTitle() {
        return questionTitle;
    }

    public void setQuestionTitle(String questionTitle) {
        this.questionTitle = questionTitle;
    }

    public String getTestPoint() {
        return testPoint;
    }

    public void setTestPoint(String testPoint) {
        this.testPoint = testPoint;
    }

    public int getNo() {
        return no;
    }

    public void setNo(int no) {
        this.no = no;
    }

    public int getQuestionType() {
        return questionType;
    }

    public void setQuestionType(int questionType) {
        this.questionType = questionType;
    }

    public String getQuestionImage() {
        return questionImage;
    }

    public void setQuestionImage(String questionImage) {
        this.questionImage = questionImage;
    }

    public String getAnswerListImage() {
        return answerListImage;
    }

    public void setAnswerListImage(String answerListImage) {
        this.answerListImage = answerListImage;
    }

    public String getAnswerList() {
        return answerList;
    }

    public void setAnswerList(String answerList) {
        this.answerList = answerList;
    }

    public int getUserAnswer() {
        return userAnswer;
    }

    public void setUserAnswer(int userAnswer) {
        this.userAnswer = userAnswer;
    }

    public int getIsError() {
        return isError;
    }

    public void setIsError(int isError) {
        this.isError = isError;
    }
}
